<?php 
    $is_logged_in = $this->session->userdata('is_logged_in');
    if($current_page !== 'login-page') {
        if (!isset($is_logged_in) || $is_logged_in != true) {
            redirect(site_url().'login');
        }
    }
?>
<!DOCTYPE html>
<html lang="en" <?php if($current_page ==='login-page') {echo 'id="'.$current_page.'"';}else {echo'class="background-bg"';}?>>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <?php
            echo link_tag('assets/css/gantt/gantt_compact.css', 'stylesheet', 'text/css');
            echo link_tag('assets/css/gantt/platform.css', 'stylesheet', 'text/css');            /*gantt chart css 12/20/13 */
            echo link_tag('assets/css/gantt/jquery.dateField.css', 'stylesheet', 'text/css');   /*gantt chart css 12/20/13 */
            echo link_tag('assets/css/gantt/gantt.css', 'stylesheet', 'text/css');              /*gantt chart css 12/20/13 */
            echo link_tag('assets/css/datatables.css', 'stylesheet', 'text/css');
            echo link_tag('assets/css/bootstrap.min.css', 'stylesheet', 'text/css');
            echo link_tag('assets/css/bootstrap-theme.min.css', 'stylesheet', 'text/css');
            echo link_tag('assets/css/datepicker.css', 'stylesheet', 'text/css');
            echo link_tag('assets/css/core.css', 'stylesheet', 'text/css');
            echo link_tag('assets/css/bbem.css', 'stylesheet', 'text/css');
        ?>
        <title><?php echo $title;?></title>
    </head>
    <body data-siteurl="<?php echo site_url()?>" style="background:transparent">
        